home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
599.swf
/
scripts
/
frame_150
/
DoAction.as
Wrap
Text File
|
2006-01-17
|
989b
|
42 lines
if(firstTime)
{
action = "PLAYING A NEW HAND";
status = action;
firstTime = "0";
cardst = cards;
call("mixCards");
hand = mixedcards.substr("1","15");
mixedcards = mixedcards.substr("16","-1");
call("sortHand");
}
else
{
firstTime = "1";
cardst = mixedcards add descard;
call("mixCards");
lista = list;
handa = "";
while(!(list eq ""))
{
i = list.substr("1","1");
list = list.substr("2","-1");
handa = handa add mixedcards.substr("1","3");
mixedcards = mixedcards.substr("4","-1");
}
hnd = hand;
hand = handa;
call("sortHand");
handa = hand;
hand = hnd;
list = lista;
while(!(list eq ""))
{
i = list.substr("1","1");
list = list.substr("2","-1");
hand = hand.substr("1",i * "3") add handa.substr("1","3") add hand.substr((i + "1") * "3" + "1","-1");
handa = handa.substr("4","-1");
}
call("deselect");
}
call("showHand");